package com.java2_14;

public class Manager extends Employee{
    private int money;

    @Override
    public void work(){
        System.out.println("管理其他人");
    }

    public Manager() {
    }

    public Manager(String id, String name, int salary, int money) {
        super(id, name, salary); //调用父级的构造器
        this.money = money;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
